package com.xju.entity;

public class Major {
    private Integer majorId;
    private String majorName;
    private Integer collegeId;
    
    // Getters and Setters
    public Integer getMajorId() {
        return majorId;
    }
    
    public void setMajorId(Integer majorId) {
        this.majorId = majorId;
    }
    
    public String getMajorName() {
        return majorName;
    }
    
    public void setMajorName(String majorName) {
        this.majorName = majorName;
    }
    
    public Integer getCollegeId() {
        return collegeId;
    }
    
    public void setCollegeId(Integer collegeId) {
        this.collegeId = collegeId;
    }
    
    @Override
    public String toString() {
        return "Major{" +
                "majorId=" + majorId +
                ", majorName='" + majorName + '\'' +
                ", collegeId=" + collegeId +
                '}';
    }
}
